﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="GetDishFromDataBaseDataSet" targetNamespace="http://tempuri.org/GetDishFromDataBaseDataSet.xsd" xmlns:mstns="http://tempuri.org/GetDishFromDataBaseDataSet.xsd" xmlns="http://tempuri.org/GetDishFromDataBaseDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="DatabaseConnectionString" IsAppSettingsProperty="true" Modifier="Assembly" Name="DatabaseConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.DatabaseConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="DBCS" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="DBCS (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.DBCS.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DishTableAdapter" GeneratorDataComponentClassName="DishTableAdapter" Name="Dish" UserDataComponentName="DishTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="DBCS (Web.config)" DbObjectName="dbo.Dish" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Dish] WHERE (([Id] = @Original_Id))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Dish] ([DishName], [DishImage], [DishStock], [DishPrice], [Category], [Comment], [D_Status]) VALUES (@DishName, @DishImage, @DishStock, @DishPrice, @Category, @Comment, @D_Status)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DishName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DishName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DishImage" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DishImage" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@DishStock" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DishStock" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DishPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DishPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Category" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Category" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Comment" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Comment" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@D_Status" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="D_Status" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Id, DishName, DishImage, DishStock, DishPrice, Category, Comment, D_Status FROM dbo.Dish</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Dish] SET [DishName] = @DishName, [DishImage] = @DishImage, [DishStock] = @DishStock, [DishPrice] = @DishPrice, [Category] = @Category, [Comment] = @Comment, [D_Status] = @D_Status WHERE (([Id] = @Original_Id))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DishName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DishName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DishImage" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DishImage" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@DishStock" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DishStock" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DishPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DishPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Category" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Category" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Comment" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Comment" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@D_Status" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="D_Status" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Id" DataSetColumn="Id" />
              <Mapping SourceColumn="DishName" DataSetColumn="DishName" />
              <Mapping SourceColumn="DishImage" DataSetColumn="DishImage" />
              <Mapping SourceColumn="DishStock" DataSetColumn="DishStock" />
              <Mapping SourceColumn="DishPrice" DataSetColumn="DishPrice" />
              <Mapping SourceColumn="Category" DataSetColumn="Category" />
              <Mapping SourceColumn="Comment" DataSetColumn="Comment" />
              <Mapping SourceColumn="D_Status" DataSetColumn="D_Status" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="DBCS (Web.config)" DbObjectName="dbo.Dish" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBy" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataone" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetDataone" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataone" UserSourceName="FillBy">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        DishName, DishImage, DishStock, DishPrice, Comment
FROM            Dish
WHERE        (Category = 1)</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="DBCS (Web.config)" DbObjectName="dbo.Dish" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBy1" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDatatwo" GeneratorSourceName="FillBy1" GetMethodModifier="Public" GetMethodName="GetDatatwo" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDatatwo" UserSourceName="FillBy1">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        Comment, DishImage, DishName, DishPrice, DishStock
FROM            Dish
WHERE        (Category = @CT) AND (D_Status = 'True')</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="CT" ColumnName="Category" DataSourceName="[C:\USERS\DIVYAPRAKASH VERMA\DOCUMENTS\VISUAL STUDIO 2013\WEBSITES\NEWH\APP_DATA\DATABASE.MDF].dbo.Dish" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@CT" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="Category" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="DBCS (Web.config)" DbObjectName="dbo.Dish" DbObjectType="Table" GenerateShortCommands="true" GeneratorSourceName="GetDataDishStock" Modifier="Public" Name="GetDataDishStock" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="GetDataDishStock">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        DishStock
FROM            Dish
WHERE        (DishName = @DN)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="DN" ColumnName="DishName" DataSourceName="[C:\USERS\DIVYAPRAKASH VERMA\DOCUMENTS\VISUAL STUDIO 2013\WEBSITES\NEWH\APP_DATA\DATABASE.MDF].dbo.Dish" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@DN" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="DishName" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="DBCS (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="UpdateQuery" Modifier="Public" Name="UpdateQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="UpdateQuery">
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>UPDATE       Dish
SET                DishStock = @DS
WHERE        (DishName = @DN)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="DS" ColumnName="DishStock" DataSourceName="[C:\USERS\DIVYAPRAKASH VERMA\DOCUMENTS\VISUAL STUDIO 2013\WEBSITES\NEWH\APP_DATA\DATABASE.MDF].dbo.Dish" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@DS" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="DishStock" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="DN" ColumnName="DishName" DataSourceName="[C:\USERS\DIVYAPRAKASH VERMA\DOCUMENTS\VISUAL STUDIO 2013\WEBSITES\NEWH\APP_DATA\DATABASE.MDF].dbo.Dish" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@DN" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="DishName" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="GetDishFromDataBaseDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_DataSetName="GetDishFromDataBaseDataSet" msprop:Generator_UserDSName="GetDishFromDataBaseDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Dish" msprop:Generator_TableClassName="DishDataTable" msprop:Generator_TableVarName="tableDish" msprop:Generator_RowChangedName="DishRowChanged" msprop:Generator_TablePropName="Dish" msprop:Generator_RowDeletingName="DishRowDeleting" msprop:Generator_RowChangingName="DishRowChanging" msprop:Generator_RowEvHandlerName="DishRowChangeEventHandler" msprop:Generator_RowDeletedName="DishRowDeleted" msprop:Generator_RowClassName="DishRow" msprop:Generator_UserTableName="Dish" msprop:Generator_RowEvArgName="DishRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnId" msprop:Generator_ColumnPropNameInRow="Id" msprop:Generator_ColumnPropNameInTable="IdColumn" msprop:Generator_UserColumnName="Id" type="xs:int" />
              <xs:element name="DishName" msprop:Generator_ColumnVarNameInTable="columnDishName" msprop:Generator_ColumnPropNameInRow="DishName" msprop:Generator_ColumnPropNameInTable="DishNameColumn" msprop:Generator_UserColumnName="DishName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DishImage" msprop:Generator_ColumnVarNameInTable="columnDishImage" msprop:Generator_ColumnPropNameInRow="DishImage" msprop:Generator_ColumnPropNameInTable="DishImageColumn" msprop:Generator_UserColumnName="DishImage" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DishStock" msprop:Generator_ColumnVarNameInTable="columnDishStock" msprop:Generator_ColumnPropNameInRow="DishStock" msprop:Generator_ColumnPropNameInTable="DishStockColumn" msprop:Generator_UserColumnName="DishStock" type="xs:int" minOccurs="0" />
              <xs:element name="DishPrice" msprop:Generator_ColumnVarNameInTable="columnDishPrice" msprop:Generator_ColumnPropNameInRow="DishPrice" msprop:Generator_ColumnPropNameInTable="DishPriceColumn" msprop:Generator_UserColumnName="DishPrice" type="xs:double" minOccurs="0" />
              <xs:element name="Category" msprop:Generator_ColumnVarNameInTable="columnCategory" msprop:Generator_ColumnPropNameInRow="Category" msprop:Generator_ColumnPropNameInTable="CategoryColumn" msprop:Generator_UserColumnName="Category" type="xs:int" minOccurs="0" />
              <xs:element name="Comment" msprop:Generator_ColumnVarNameInTable="columnComment" msprop:Generator_ColumnPropNameInRow="Comment" msprop:Generator_ColumnPropNameInTable="CommentColumn" msprop:Generator_UserColumnName="Comment" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="D_Status" msprop:Generator_ColumnVarNameInTable="columnD_Status" msprop:Generator_ColumnPropNameInRow="D_Status" msprop:Generator_ColumnPropNameInTable="D_StatusColumn" msprop:Generator_UserColumnName="D_Status" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Dish" />
      <xs:field xpath="mstns:Id" />
    </xs:unique>
  </xs:element>
</xs:schema>